﻿using System;
using System.Collections.Generic;
using System.Web;
using PayRoller.Code;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using HySoft.Cash.Business;
using HySoft.Cash.Structure;
using System.Configuration;
using System.Web.Profile;
using System.Web.UI;

namespace PayRoller.Manage.OrgInfo
{
    public class ReceivingDel: Page, IRequiresSessionState
{
    // Fields
    protected HtmlForm form1;

    // Methods
    protected void Page_Load(object sender, EventArgs e)
    {
        if (base.Request["Sid"] != null)
        {
            TrecpaymentBN tbn = new TrecpaymentBN(this.Page);
            tbn.Delete(Convert.ToInt32(base.Request["Sid"]));
            tbn.Dispose();
            tbn = null;
            string str = base.Request["OrgSid"].ToString();
            base.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('Success!');window.location='ReceivingList.aspx?OrgSid=" + str + "';</script>");
        }
    }

    // Properties
    protected HttpApplication ApplicationInstance
    {
        get
        {
            return this.Context.ApplicationInstance;
        }
    }

    protected DefaultProfile Profile
    {
        get
        {
            return (DefaultProfile) this.Context.Profile;
        }
    }
}

}
